package com.ship.dispatch.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ship.common.business.service.impl.BaseServiceImpl;
import com.ship.dispatch.bean.SpFobSublease;
import com.ship.dispatch.mapper.SpFobSubleaseMapper;
import com.ship.dispatch.service.SpFobSubleaseService;
import org.springframework.stereotype.Service;

@Service
public class SpFobSubleaseServiceImpl extends BaseServiceImpl<SpFobSubleaseMapper, SpFobSublease> implements SpFobSubleaseService {
    @Override
    public SpFobSublease getExceuteByInstanceId(String processInstaneId) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<SpFobSublease>().eq(SpFobSublease::getProcessInstanceId,processInstaneId).last("limit 1"));
    }
}
